Enumerating K best paths in length order in DAGs
نویسندگان
چکیده
We address the problem of finding the K best paths connecting a given pair of nodes in a directed acyclic graph (DAG) with arbitrary lengths. One of the main results in this paper is the proof that a tree representing the kth shortest path is obtained by an arc exchange in one of the previous (k-1) trees (each of which contains a previous best path). An O( ( log ) m K n K ) time and O(K+m) space algorithm is designed to explicitly determine the K shortest paths in a DAG with n nodes and m arcs. The algorithm runs in O( m Kn ) time using O(K+m) space in DAGs with integer length arcs. Empirical results confirming the superior performance of the algorithm to others found in the literature for randomly generated graphs are reported.
منابع مشابه
A Lazy Version of Eppstein's K Shortest Paths Algorithm
We consider the problem of enumerating, in order of increasing length, the K shortest paths between a given pair of nodes in a weighted digraph G with n nodes and m arcs. To solve this problem, Eppstein’s algorithm first computes the shortest path tree and then builds a graph D(G) representing all possible deviations from the shortest path. Building D(G) takes O(m+n log n) time in the basic ver...
متن کاملNear-shortest and K-shortest simple paths
We describe a new algorithm for solving the problem of enumerating all nearshortest simple (loopless) s-t paths in a graph G = (V,E) with non-negative edge lengths. Letting n = |V | and m = |E|, the time per path enumerated is O(nS(n,m)) given a user-selected shortest-path subroutine with complexity O(S(n,m)). When coupled with binary search, this algorithm solves the corresponding K-shortest s...
متن کاملCounting Segmented Permutations Using Bicoloured Dyck Paths
A bicoloured Dyck path is a Dyck path in which each up-step is assigned one of two colours, say, red and green. We say that a permutation π is σ-segmented if every occurrence o of σ in π is a segment-occurrence (i.e., o is a contiguous subword in π). We show combinatorially the following results: The 132-segmented permutations of length n with k occurrences of 132 are in one-to-one corresponden...
متن کاملAsymptotic behaviour of associated primes of monomial ideals with combinatorial applications
Let $R$ be a commutative Noetherian ring and $I$ be an ideal of $R$. We say that $I$ satisfies the persistence property if $mathrm{Ass}_R(R/I^k)subseteq mathrm{Ass}_R(R/I^{k+1})$ for all positive integers $kgeq 1$, which $mathrm{Ass}_R(R/I)$ denotes the set of associated prime ideals of $I$. In this paper, we introduce a class of square-free monomial ideals in the polynomial ring $R=K[x_1,ld...
متن کاملA Logspace Approximation Scheme for the Shortest Path Problem for Graphs with Bounded Independence Number
How difficult is it to find a path between two vertices in finite directed graphs whose independence number is bounded by some constant k? The independence number of a graph is the largest number of vertices that can be picked such that there is no edge between any two of them. The complexity of this problem depends on the exact question we ask: Do we only wish to tell whether a path exists? Do...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- European Journal of Operational Research
دوره 221 شماره
صفحات -
تاریخ انتشار 2012